package org.vison.wonfu.framework.test.admin.integration;

import org.vison.wonfu.framework.soa.annotation.HttpMethod;
import org.vison.wonfu.framework.soa.annotation.SOAParamsMode;
import org.vison.wonfu.framework.soa.annotation.SoaRequestMethod;
import org.vison.wonfu.framework.soa.annotation.SoaMethod;
import org.vison.wonfu.framework.test.admin.integration.model.BaseRes;
import org.vison.wonfu.framework.test.admin.integration.model.JsonRpcTO;
import org.vison.wonfu.framework.test.admin.integration.model.PostReq;
import org.vison.wonfu.framework.test.admin.service.PostmanEchoSoaEchoPostFallback;

public interface PostmanEchoSoaService {

    String appid = "postman-echo";
    String appid2 = "postman-echo-v2";

    String path = "/";
    String domain = "postman-echo.comc";

    @SoaMethod(http = @HttpMethod(method = SoaRequestMethod.POST),
            path = "/post",fallback = PostmanEchoSoaEchoPostFallback.class)
    BaseRes<JsonRpcTO> echoPost(PostReq req, String type);

    @SoaMethod(http = @HttpMethod(method = SoaRequestMethod.GET, paramsMode = SOAParamsMode.PARAMS),
            path = "/get",fallback = PostmanEchoSoaEchoPostFallback.class)
    BaseRes<String> echoGet(String hello);
}
